﻿using Microsoft.VisualStudio.TestTools.UnitTesting;
using AMatysiak.Methods;
using System;

namespace AMatysiakTest.Methods
{
    [TestClass]
    public class IsEmptyTest
    {
        [TestMethod]
        public void emptyPattern()
        {
            string pattern = "";
            bool result = pattern.IsEmpty();

            Assert.IsTrue(result);
        }

        [TestMethod]
        public void nullValue()
        {
            string pattern = null;
            bool result = pattern.IsEmpty();

            Assert.IsTrue(result);
        }

        [TestMethod]
        public void nonEmptyValue()
        {
            string pattern = "a";
            bool result = pattern.IsEmpty();

            Assert.IsFalse(result);
        }
    }
}
